<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/page/form/page-fieldset-template.xhtml"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox">
	
	<ui:param name="pvb" value="#{commonContentViewBean.parent}" />
	<ui:param name="pageViewBean" value="#{commonContentViewBean}" />
	<ui:param name="compId" value="#{pageViewBean.id}" />
	<ui:param name="compTitle" value="被盗抢车辆登记" />
	<ui:param name="compToggleable" value="true" />
	
	
	<ui:define name="compContent">
	<div style="overflow:auto;">
		<ui:decorate template="/layout/input/editable-template.xhtml">
						
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="cllx" />
				<ui:param name="compBean2Id" value="clpp" />
				<ui:param name="compBean1Lable" value="车辆类型" />
				<ui:param name="compBean2Lable" value="车辆品牌" />
				<ui:define name="compBean1Content">
				<h:panelGrid columns="2">
					  <h:panelGroup>
					   <h:selectOneMenu value="#{commonContentViewBean.fields.goodstype}">
					     <f:selectItem itemLabel="轿车" itemValue="K33" />
						 <f:selectItem itemLabel="小型越野客车" itemValue="K32" />
                        <f:selectItem itemLabel="中型越野客车" itemValue="K25" />
                        <f:selectItem itemLabel="轻便二轮摩托车" itemValue="M22" />
                        <f:selectItem itemLabel="农用车" itemValue="N" />  
                        <f:selectItem itemLabel="三轮农用运输车" itemValue="N11" />  
                        
                         <f:selectItem itemLabel="微型普通客车" itemValue="K41" />
						 <f:selectItem itemLabel="微型越野客车" itemValue="K42" />
                        <f:selectItem itemLabel="电车" itemValue="D" />
                        <f:selectItem itemLabel="无轨电车" itemValue="D11" />
                        <f:selectItem itemLabel="中型普通半挂车" itemValue="B21" />  
                        <f:selectItem itemLabel="中型自卸全挂车" itemValue="G26" />            
					</h:selectOneMenu>
					</h:panelGroup>
					</h:panelGrid>
			    </ui:define>
			    <ui:define name="compBean2Content">
			    	<h:inputText id="#{compId}_clpp" value="#{commonContentViewBean.fields.trademark}" />
			    </ui:define>
			</ui:decorate>
			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="clxh" />
				<ui:param name="compBean2Id" value="hpzl" />
				<ui:param name="compBean1Lable" value="车辆型号" />
				<ui:param name="compBean2Lable" value="号牌种类" />
				<ui:define name="compBean1Content">
			    	<h:inputText id="#{compId}_clxh" value="#{commonContentViewBean.fields.model}" />
			    </ui:define>
			    <ui:define name="compBean2Content">
			    	 <h:selectOneMenu value="#{commonContentViewBean.fields.hpzl}">
						<f:selectItem itemLabel="警用摩托车号牌" itemValue="警用摩托车号牌" />
                        <f:selectItem itemLabel="两、三轮摩托车" itemValue="两、三轮摩托车" />
                        <f:selectItem itemLabel="警用汽车号牌" itemValue="警用汽车号牌" />
                        <f:selectItem itemLabel="军用车辆号牌" itemValue="军用车辆号牌" />
                        <f:selectItem itemLabel="小型汽车" itemValue="黑色" />
                        <f:selectItem itemLabel="大型汽车" itemValue="大型汽车" />
                        <f:selectItem itemLabel="其它号牌" itemValue="其它号牌" />
					</h:selectOneMenu>
			    </ui:define>
			</ui:decorate>
			
			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="hphm" />
				<ui:param name="compBean2Id" value="csys" />
				<ui:param name="compBean1Lable" value="号牌号码" />
				<ui:param name="compBean2Lable" value="车身颜色" />
				<ui:define name="compBean1Content">
					   <h:inputText id="#{compId}_hphm" value="#{commonContentViewBean.fields.hphm}" />
			    </ui:define>
			    <ui:define name="compBean2Content">
			    <h:panelGrid columns="2">
			      <h:panelGroup>
					   <h:selectOneMenu value="#{commonContentViewBean.fields.csys}">
						 <f:selectItem itemLabel="红色" itemValue="红色" />
                        <f:selectItem itemLabel="黑色" itemValue="黑色" />
                        <f:selectItem itemLabel="粉红" itemValue="粉红" />
                        <f:selectItem itemLabel="灰白" itemValue="灰白" />
                        <f:selectItem itemLabel="蓝色" itemValue="蓝色" />
					</h:selectOneMenu>
					</h:panelGroup>
				</h:panelGrid>
			    </ui:define>
			</ui:decorate>
			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="syr" />
				<ui:param name="compBean2Id" value="ccdjsj" />
				<ui:param name="compBean1Lable" value="机动车所有人" />
				<ui:param name="compBean2Lable" value="初次登记时间" />
				<ui:define name="compBean1Content">
			    	<h:inputText id="#{compId}_syr" value="#{commonContentViewBean.fields.jdcsyr}" />
			    </ui:define>
			    <ui:define name="compBean2Content">
			    <p:calendar id="ccdjsj" size="33" mode="popup"
						showOn="button" value="#{commonContentViewBean.fields.ccdjsj}"
						pattern="yyyy年MM月d日 " locale="zh" popupIconOnly="true" />
			    </ui:define>
			</ui:decorate>
			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="fdjh" />
				<ui:param name="compBean2Id" value="clsbdh" />
				<ui:param name="compBean1Lable" value="发动机号" />
				<ui:param name="compBean2Lable" value="车辆识别代号" />
				<ui:define name="compBean1Content">
			    	<h:inputText id="#{compId}_fdjh" value="#{commonContentViewBean.fields.fdjh}" />
			    </ui:define>
			    <ui:define name="compBean2Content">
			    	<h:inputText id="#{compId}_clsbdh" value="#{commonContentViewBean.fields.clsbdm}" />
			    </ui:define>
			</ui:decorate>
			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="cjh" />				
				<ui:param name="compBean2Id" value="tbspr" />
				<ui:param name="compBean1Lable" value="车架号" />
				<ui:param name="compBean2Lable" value="审批人" />	
				<ui:define name="compBean1Content">
			    	<h:inputText id="#{compId}_cjh" value="#{commonContentViewBean.fields.cjh}" />
			    </ui:define>
			    <ui:define name="compBean2Content">
			        <h:inputText id="#{compId}_tbspr" value="#{commonContentViewBean.fields.spr}" />
			    </ui:define>
			</ui:decorate>
						
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			        <ui:param name="compType" value="normal" />
					<ui:param name="compBean1Id" value="sfbx" />
					<ui:param name="compBean1Lable" value="是否参加被盗抢险" />
					<ui:param name="compBean2Id" value="zt" />
					<ui:param name="compBean2Lable" value="状态" />							
				    <ui:define name="compBean1Content">			    	
					<h:selectOneMenu value="#{commonContentViewBean.fields.sfcjbdqx}">
                        <f:selectItem itemLabel="是" itemValue="0" />
                        <f:selectItem itemLabel="否" itemValue="1" />
                        <f:selectItem itemLabel="未知" itemValue="2" />
                    </h:selectOneMenu>
				    </ui:define>
				    <ui:define name="compBean2Content">
					<h:selectOneMenu value="#{commonContentViewBean.fields.zt}">
                        <f:selectItem itemLabel="本地未验" itemValue="0" />
                        <f:selectItem itemLabel="本地已验" itemValue="1" />
                        <f:selectItem itemLabel="省审批未过" itemValue="2" />
                        <f:selectItem itemLabel="省审批通过" itemValue="3" />
                        <f:selectItem itemLabel="审批后修改" itemValue="4" />
                    </h:selectOneMenu>
			    </ui:define>
			</ui:decorate>
			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="sydwdm" />
				<ui:param name="compBean1Lable" value="使用单位代码" />
				<ui:define name="compBean1Content">
			    	<h:inputText id="#{compId}_sydwdm" value="#{commonContentViewBean.fields.sydwdm}"/>
			    </ui:define>
			</ui:decorate>
	
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single-all" />
				<ui:param name="compBean1Id" value="spyj" />
				<ui:param name="compBean1Lable" value="审批意见" />
				<ui:define name="compBean1Content">
					<h:inputTextarea
						 style="width:100%;height:100px;overflow:auto;"
						 id="spyj" effectDuration="400"
						 value="#{commonContentViewBean.fields.spyj}" />
			    </ui:define>
			</ui:decorate>
			
		</ui:decorate>
		</div>
	</ui:define>
	
	<ui:define name="compButtons">
		<p:commandButton
			actionListener="#{bdqclAction.save}" title="保存"
			onstart="this.disabled=true" image="./img/icons/add.png" value="保存"
			oncomplete="#{commonContentViewBean.id}_dialog.hide();"
			update="#{pvb.id}_bdjdcForm"
			style="margin:5px;">
			<h:inputHidden value="#{pageViewBean.id}" />
		</p:commandButton>
		
		<p:commandButton title="关闭"  type="button" onclick="#{commonContentViewBean.id}_dialog.hide();" image="./img/icons/cancel.png"
			value="关闭" style="margin:5px;" />
	</ui:define>
	

</ui:composition>